#!/bin/bash

# Java 11 环境配置
export JAVA_HOME=/usr/local/opt/openjdk@11/libexec/openjdk.jdk/Contents/Home
export PATH="/usr/local/opt/openjdk@11/bin:$PATH"

# Maven 配置
export MAVEN_HOME=/usr/local/Cellar/maven/3.9.11/libexec
export PATH="$MAVEN_HOME/bin:$PATH"

# Spring Boot 配置
export SPRING_PROFILES_ACTIVE=dev

echo "环境配置完成！"
echo "JAVA_HOME: $JAVA_HOME"
echo "Java版本:"
java -version
echo "Maven版本:"
mvn -version 